import React, { useEffect } from 'react';
import App, { AppProps } from 'next/app';

function MyApp({ Component, pageProps }: AppProps): JSX.Element {
    useEffect(() => {
        // if (process.env.NODE_ENV === 'development') {
        // 只在开发环境下使用 VConsole
        const VConsole = require('vconsole');
        // new VConsole();
        // }
    }, []);

    return <Component {...pageProps} />;
}

export default MyApp;
